Xbasic

SQL::ConnectionDropUserGroup Method

Syntax

Result_Flag as L = DropUserGroup(GroupName as C)

Arguments

GroupNameCharacter

The name of the group to drop.

Returns

Result_FlagLogical

TRUE (.T.) if the operation was successful; otherwise FALSE (.F.).

Description

Remove the user group named from the currently connected database or server.

Discussion

The DropUserGroup()removes the user group named from the currently connected database or server.

Example

dim conn as SQL::Connection
dim connString as C
cs = "{A5API=Access,FileName='C:\Program Files\A5V8\MDBFiles\Alphasports.mdb',UserName='Admin'}"
if .not. conn.open(cs) then
    ui_msg_box("Error", conn.CallResult.text)
    end
end if
if .not. conn.DropUserGroup("Techwriting") then
    ui_msg_box("Error", conn.CallResult.text)
end if
conn.close()

See Also